list1 = ['a', 'b', 'c', 'd', 'e']
print(list1[10:])   #这里取的是10后面的索引,没有所以为空

str1 = 'hello python'
str1.title()
print(str1)

list1=[5,3,1,9,12]
r = (x for x in list1 if x%3==0)
print(type(r))   # generator生成器

lst = []

def input_name(name):
    lst.append(name)

while True:
    name = input("输入一个名字:")
    if  name == '':
        for i in lst:
            print(i)
        exit()
    else:
        input_name(name)
